import request from '@/utils/request'
import { AxiosPromise } from 'axios'

enum Api {
  list = '/pushConfig/list',
  changeProperties = '/pushConfig/changeProperties',
}

export const pushList = (data): AxiosPromise<any> => {
  return request({
    url: Api.list,
    method: 'post',
    data,
  })
}

export const changeProperties = (data: any) => {
  return request({
    url: Api.changeProperties,
    method: 'post',
    data,
  })
}
